#include "TcpServer.hh"
#include "CommExec.hh"
#include "Comm.hh"
#include <iostream>
#include <memory>

int main(int argc, char *argv[])
{
    StrCmd cmd;
    std::unique_ptr<TcpServer> svr = std::make_unique<TcpServer>([&cmd](std::string cmdstr){return cmd.ExeC(cmdstr);});
    svr->InitServer();
    svr->Start();
    return 0;
}